// SendLog.h: interface for the CSendLog class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SENDLOG_H__977B9D74_78D0_440B_A306_6D8DE0A016D4__INCLUDED_)
#define AFX_SENDLOG_H__977B9D74_78D0_440B_A306_6D8DE0A016D4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxsock.h>
#include <string>
#include "MySocket.h"

using namespace std;

enum LOGLEVEL {
	RUNTIME,
	WARNNING,
	DUMP
};
class CSendLog  
{
public:
	CSendLog();
	virtual ~CSendLog();

	BOOL SendAgentAction(LOGLEVEL level, string msg);
private:
	CMySocket socket;
	struct sockaddr_in* addr;
	int fd;
};

#endif // !defined(AFX_SENDLOG_H__977B9D74_78D0_440B_A306_6D8DE0A016D4__INCLUDED_)
